<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>修改资源信息</title>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	color:#000;
	text-decoration: none;
}
a:hover {
	color:#CA5466;
	text-decoration:underline;
}
a img {
	border: 0;
}
.STYLE1 {
	font-size: 13px;
	color: #000;
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {

	font-size: 12px;
}
.td_bg {
	font-size: 13px;
	background: #fff;
	border:1px solid #6495ED;
}

/*表单项的字体格式*/
.td_x_bg {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background: #BDE3FB;
	border:1px solid #6495ED;
	height:40px;
}

.table {
	margin-top: 10px;
}
.tabTitle {
	padding:5px;
	margin-left:50px;
	background:#E9F7FC;
	width:120px;
	border:1px solid #B5D6E6;
	margin-top:10px;
	border-bottom-style: none;
	font-size: 13px;
}
.ModifyLink {
	text-align:left;
	border:1px solid #B5D6E6;
	float:left;
	position: absolute;
	width:650px;
	left:20%;
	top:8%;
	background:#fff;
	display:none;
}
-->
</style>
		<script language="javascript" src="js/jquery.js"></script>
		<script language="javascript" src="js/tdColor.js"></script>

	</head>

	<body>
		<script>
		</script>
		<div class="ModifyLink" id="ModifyLink" onmousemove="{
					if(ifCanMove) {
						this.style.left = (mousePos.x - 300) + 'px';
						this.style.top = (mousePos.y - 20) + 'px';
					}
				}">
			<span style="background:#B5D6E6;float:right;padding:2px 2px;cursor: pointer;border:1px solid #000;width:15px;text-align:center;"
				onmouseover="this.style.color='#CA5466';this.style.fontWeight='bold'"
				onmouseout="this.style.color='#000';this.style.textDecoration='none';this.style.fontWeight='normal'"
				onclick="parentNode.style.display='none';">
				X
			</span>
			<div style="border-bottom:1px solid #B5D6E6;background:#B5D6E6;height:20px;" onclick="{
					if(!ifCanMove) {
						ifCanMove = true;
						parentNode.parentNode.children['ModifyLink'].style.cursor='move';
					}else {
						ifCanMove = false;
						parentNode.parentNode.children['ModifyLink'].style.cursor='default';
					}
				}">
				<span style="margin:5px;">修改资源信息</span>
			</div>
			<form action="front/modifyResource.action" method="post" name="form1" enctype="multipart/form-data" onsubmit="return checkMHImgForm();">
			<table class="table" border="1" width="90%" align="center"
				cellpadding="2" cellspacing="2" bordercolor="#6495ED">
				<tbody>
					<tr>
						<td class="td_bg" width="70" style="text-align:center">
							资源名称
						</td>
						<td class="td_bg" style="height:40px;">
							<input type="text" name="resource.docName" value="<s:property value="#resources.docName" />" size=70% />
						</td>
					</tr>
					<tr>
						<td class="td_bg" width="70" style="text-align:center">
							链接类型
						</td>
						<td class="td_bg" style="height:40px;">
							<input type="radio" name="resource.docGroup" value="0" <s:if test="#resources.docGroup == 0" >checked="checked"</s:if> />兴趣爱好
							<input type="radio" name="resource.docGroup" value="1" <s:if test="#resources.docGroup == 1" >checked="checked"</s:if>  />Java
							<input type="radio" name="resource.docGroup" value="2" <s:if test="#resources.docGroup == 2" >checked="checked"</s:if>  />PHP
							<input type="radio" name="resource.docGroup" value="3" <s:if test="#resources.docGroup == 3" >checked="checked"</s:if>  />LINUX
							<input type="radio" name="resource.docGroup" value="4" <s:if test="#resources.docGroup == 4" >checked="checked"</s:if>  />数据库
							<input type="radio" name="resource.docGroup" value="5" <s:if test="#resources.docGroup == 5" >checked="checked"</s:if>  />其它
						</td>
					</tr>
					<tr>
						<td class="td_bg" valign="top" style="padding-top:10px;text-align:center" >
							链接描述
						</td>
						<td class="td_bg">
							<span>描述字数限制在100字以内</span><br />
							<textarea name="resource.description" rows="10" cols="40"><s:property value="#resources.description" /></textarea>
						</td>
					</tr>
					<tr>
						<td class="td_bg" colspan="2" style="padding-left:50px;">
							<input type="hidden" name="resource.id" value="<s:property value="#resources.id" />" />
							<input type="submit" value="修改" style="width:80px;height:30px;margin-left:60px;" />
							<input type="reset" value="重置" style="width:80px;height:30px;margin-left:30px;" />
						</td>
					</tr>
				</tbody>
			</table>
			</form>
		</div>
	</body>
</html>